<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/default.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.2.js"></script> 
<script src="${pageContext.request.contextPath}/js/JS_CheckForm.js" language="JavaScript"></script>
<script src="${pageContext.request.contextPath}/js/jquery.floatbox.10.4.min.js" type="text/javascript"></script>

<script language="JavaScript">
 $(document).ready(function()  {
	
		 $(".changepicture").click(function () {
			    $.floatbox({
			        ajax: {
			            url: "changeLogo.action?enterpriseId="+$(this).attr('id'),
			            before: "<p>Loading content</p>", //loading message while the request is being processed
			            finish: function () {
			               
			            }
			        },
			        fade: true
			    });
		  });
	 });
 
</script>

<title>企业基本信息</title>

</head>

<body bgcolor="#ffffff" onload="init()" leftmargin="0" topmargin="0">
   <s:actionmessage/>
    <s:form name="updateEnterprise" action="updateEnterprise" method="POST" theme="simple" id="frmDemo"  enctype="multipart/form-data">
	    <s:if test="%{enterprise!=null}">
	       <s:hidden name="enterprise.id" value="%{enterprise.id}"></s:hidden>
	       <s:hidden name="enterprise.logo.id" value="%{enterprise.logo.id}"></s:hidden>	             
	    </s:if>
  		<table height="100%" width="100%" cellspacing="1" cellpadding="2" border="0" bgcolor="#336600">
    		<tbody>
    			<tr> 
      				<td height="26" bgcolor="#669900" colspan="2">
      					<font color="#ffffff">::企业基本信息</font>
      				</td>
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">名称：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="enterprise.name" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>		
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">地址：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="enterprise.address" cssClass="bginput" size="70" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>  			
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">标语：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="enterprise.banner" cssClass="bginput" size="70" maxLength="100"></s:textfield>
        			</td>
    			</tr>
    		
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">描述：</td>
      				<td height="26" width="100%"> 
      				   <s:textarea name="enterprise.introduction" rows="30" cols="240"  id="elm1"> </s:textarea>
        			</td>
        			
    			</tr>
    			
    		<tr bgcolor="#eeeeee" align="center"> 
      			<td height="40" colspan="2">
      				<table width="100%" cellspacing="0" cellpadding="5" border="0">
          				<tbody>
          					<tr> 
            					<td height="50" align="center"> 
            					   <s:submit value=" 保 存  "></s:submit>
            					   <!-- 
              						<input type="submit" value="　保　存　" class="button" name="submit">
              						 -->
              						<input type="button" onclick="history.go(-1)" value="　返 回　" class="button" name="YL">
              					</td>
          					</tr>
        				</tbody>
        			</table>
        		</td>
    		</tr>
  		</tbody>
  	</table>
</s:form>
</body>
</html>